import { Column, Entity } from "typeorm"
import { BaseEntity } from "../../base/entity/base"
import { CommonAuditStatus } from "../../../interface"



@Entity('provider_partner', { comment: '服务人员合作关系 - 处理服务人员与团队、商户的合作关系' })
export class ProviderPartnerEntity extends BaseEntity {

    @Column({ comment: '服务人员ID', nullable: false })
    providerId: number

    @Column({ comment: '合作团队ID', nullable: false })
    teamId: number

    @Column({ comment: '合作状态', type: 'enum', enum: CommonAuditStatus, default: CommonAuditStatus.PENDING })
    status: CommonAuditStatus
}